Integrand size = 16, antiderivative size = 91 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\frac {a \arctan \left (\frac {b+a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2} d}+\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )} \]
a*arctan((b+a*tan(1/2*d*x^2+1/2*c))/(a^2-b^2)^(1/2))/(a^2-b^2)^(3/2)/d+1/2 *b*cos(d*x^2+c)/(a^2-b^2)/d/(a+b*sin(d*x^2+c))
Time = 0.20 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.00 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\frac {\frac {2 a \arctan \left (\frac {b+a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )}{\sqrt {a^2-b^2}}\right )}{\sqrt {a^2-b^2}}+\frac {b \cos \left (c+d x^2\right )}{a+b \sin \left (c+d x^2\right )}}{2 (a-b) (a+b) d} \]
((2*a*ArcTan[(b + a*Tan[(c + d*x^2)/2])/Sqrt[a^2 - b^2]])/Sqrt[a^2 - b^2] + (b*Cos[c + d*x^2])/(a + b*Sin[c + d*x^2]))/(2*(a - b)*(a + b)*d)
Time = 0.38 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.09, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.562, Rules used = {3860, 3042, 3143, 25, 27, 3042, 3139, 1083, 217}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx\) |
\(\Big \downarrow \) 3860 |
\(\displaystyle \frac {1}{2} \int \frac {1}{\left (a+b \sin \left (d x^2+c\right )\right )^2}dx^2\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{2} \int \frac {1}{\left (a+b \sin \left (d x^2+c\right )\right )^2}dx^2\) |
\(\Big \downarrow \) 3143 |
\(\displaystyle \frac {1}{2} \left (\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}-\frac {\int -\frac {a}{a+b \sin \left (d x^2+c\right )}dx^2}{a^2-b^2}\right )\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{2} \left (\frac {\int \frac {a}{a+b \sin \left (d x^2+c\right )}dx^2}{a^2-b^2}+\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{2} \left (\frac {a \int \frac {1}{a+b \sin \left (d x^2+c\right )}dx^2}{a^2-b^2}+\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{2} \left (\frac {a \int \frac {1}{a+b \sin \left (d x^2+c\right )}dx^2}{a^2-b^2}+\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}\right )\) |
\(\Big \downarrow \) 3139 |
\(\displaystyle \frac {1}{2} \left (\frac {2 a \int \frac {1}{a x^4+a+2 b \tan \left (\frac {1}{2} \left (d x^2+c\right )\right )}d\tan \left (\frac {1}{2} \left (d x^2+c\right )\right )}{d \left (a^2-b^2\right )}+\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}\right )\) |
\(\Big \downarrow \) 1083 |
\(\displaystyle \frac {1}{2} \left (\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}-\frac {4 a \int \frac {1}{-x^4-4 \left (a^2-b^2\right )}d\left (2 b+2 a \tan \left (\frac {1}{2} \left (d x^2+c\right )\right )\right )}{d \left (a^2-b^2\right )}\right )\) |
\(\Big \downarrow \) 217 |
\(\displaystyle \frac {1}{2} \left (\frac {2 a \arctan \left (\frac {2 a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )+2 b}{2 \sqrt {a^2-b^2}}\right )}{d \left (a^2-b^2\right )^{3/2}}+\frac {b \cos \left (c+d x^2\right )}{d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )}\right )\) |
((2*a*ArcTan[(2*b + 2*a*Tan[(c + d*x^2)/2])/(2*Sqrt[a^2 - b^2])])/((a^2 - b^2)^(3/2)*d) + (b*Cos[c + d*x^2])/((a^2 - b^2)*d*(a + b*Sin[c + d*x^2]))) /2
3.1.45.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Simp[-2 Subst[I nt[1/Simp[b^2 - 4*a*c - x^2, x], x], x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x]
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> With[{e = Fre eFactors[Tan[(c + d*x)/2], x]}, Simp[2*(e/d) Subst[Int[1/(a + 2*b*e*x + a *e^2*x^2), x], x, Tan[(c + d*x)/2]/e], x]] /; FreeQ[{a, b, c, d}, x] && NeQ [a^2 - b^2, 0]
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos [c + d*x]*((a + b*Sin[c + d*x])^(n + 1)/(d*(n + 1)*(a^2 - b^2))), x] + Simp [1/((n + 1)*(a^2 - b^2)) Int[(a + b*Sin[c + d*x])^(n + 1)*Simp[a*(n + 1) - b*(n + 2)*Sin[c + d*x], x], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && LtQ[n, -1] && IntegerQ[2*n]
Int[(x_)^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol ] :> Simp[1/n Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*Sin[c + d*x])^ p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simplify[ (m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[ (m + 1)/n], 0]))
Time = 0.24 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.44
method | result | size |
derivativedivides | \(\frac {\frac {\frac {2 b^{2} \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )}{a \left (a^{2}-b^{2}\right )}+\frac {2 b}{a^{2}-b^{2}}}{\left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right ) a +2 b \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+a}+\frac {2 a \arctan \left (\frac {2 a \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\left (a^{2}-b^{2}\right )^{\frac {3}{2}}}}{2 d}\) | \(131\) |
default | \(\frac {\frac {\frac {2 b^{2} \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )}{a \left (a^{2}-b^{2}\right )}+\frac {2 b}{a^{2}-b^{2}}}{\left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right ) a +2 b \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+a}+\frac {2 a \arctan \left (\frac {2 a \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\left (a^{2}-b^{2}\right )^{\frac {3}{2}}}}{2 d}\) | \(131\) |
risch | \(\frac {i b +a \,{\mathrm e}^{i \left (d \,x^{2}+c \right )}}{\left (a^{2}-b^{2}\right ) d \left (b \,{\mathrm e}^{2 i \left (d \,x^{2}+c \right )}-b +2 i a \,{\mathrm e}^{i \left (d \,x^{2}+c \right )}\right )}-\frac {a \ln \left ({\mathrm e}^{i \left (d \,x^{2}+c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}-a^{2}+b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{2 \sqrt {-a^{2}+b^{2}}\, \left (a +b \right ) \left (a -b \right ) d}+\frac {a \ln \left ({\mathrm e}^{i \left (d \,x^{2}+c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}+a^{2}-b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{2 \sqrt {-a^{2}+b^{2}}\, \left (a +b \right ) \left (a -b \right ) d}\) | \(231\) |
1/2/d*(2*(b^2/a/(a^2-b^2)*tan(1/2*d*x^2+1/2*c)+b/(a^2-b^2))/(tan(1/2*d*x^2 +1/2*c)^2*a+2*b*tan(1/2*d*x^2+1/2*c)+a)+2*a/(a^2-b^2)^(3/2)*arctan(1/2*(2* a*tan(1/2*d*x^2+1/2*c)+2*b)/(a^2-b^2)^(1/2)))
Time = 0.34 (sec) , antiderivative size = 366, normalized size of antiderivative = 4.02 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\left [\frac {{\left (a b \sin \left (d x^{2} + c\right ) + a^{2}\right )} \sqrt {-a^{2} + b^{2}} \log \left (-\frac {{\left (2 \, a^{2} - b^{2}\right )} \cos \left (d x^{2} + c\right )^{2} - 2 \, a b \sin \left (d x^{2} + c\right ) - a^{2} - b^{2} - 2 \, {\left (a \cos \left (d x^{2} + c\right ) \sin \left (d x^{2} + c\right ) + b \cos \left (d x^{2} + c\right )\right )} \sqrt {-a^{2} + b^{2}}}{b^{2} \cos \left (d x^{2} + c\right )^{2} - 2 \, a b \sin \left (d x^{2} + c\right ) - a^{2} - b^{2}}\right ) + 2 \, {\left (a^{2} b - b^{3}\right )} \cos \left (d x^{2} + c\right )}{4 \, {\left ({\left (a^{4} b - 2 \, a^{2} b^{3} + b^{5}\right )} d \sin \left (d x^{2} + c\right ) + {\left (a^{5} - 2 \, a^{3} b^{2} + a b^{4}\right )} d\right )}}, -\frac {{\left (a b \sin \left (d x^{2} + c\right ) + a^{2}\right )} \sqrt {a^{2} - b^{2}} \arctan \left (-\frac {a \sin \left (d x^{2} + c\right ) + b}{\sqrt {a^{2} - b^{2}} \cos \left (d x^{2} + c\right )}\right ) - {\left (a^{2} b - b^{3}\right )} \cos \left (d x^{2} + c\right )}{2 \, {\left ({\left (a^{4} b - 2 \, a^{2} b^{3} + b^{5}\right )} d \sin \left (d x^{2} + c\right ) + {\left (a^{5} - 2 \, a^{3} b^{2} + a b^{4}\right )} d\right )}}\right ] \]
[1/4*((a*b*sin(d*x^2 + c) + a^2)*sqrt(-a^2 + b^2)*log(-((2*a^2 - b^2)*cos( d*x^2 + c)^2 - 2*a*b*sin(d*x^2 + c) - a^2 - b^2 - 2*(a*cos(d*x^2 + c)*sin( d*x^2 + c) + b*cos(d*x^2 + c))*sqrt(-a^2 + b^2))/(b^2*cos(d*x^2 + c)^2 - 2 *a*b*sin(d*x^2 + c) - a^2 - b^2)) + 2*(a^2*b - b^3)*cos(d*x^2 + c))/((a^4* b - 2*a^2*b^3 + b^5)*d*sin(d*x^2 + c) + (a^5 - 2*a^3*b^2 + a*b^4)*d), -1/2 *((a*b*sin(d*x^2 + c) + a^2)*sqrt(a^2 - b^2)*arctan(-(a*sin(d*x^2 + c) + b )/(sqrt(a^2 - b^2)*cos(d*x^2 + c))) - (a^2*b - b^3)*cos(d*x^2 + c))/((a^4* b - 2*a^2*b^3 + b^5)*d*sin(d*x^2 + c) + (a^5 - 2*a^3*b^2 + a*b^4)*d)]
Leaf count of result is larger than twice the leaf count of optimal. 2116 vs. \(2 (71) = 142\).
Time = 54.30 (sec) , antiderivative size = 2116, normalized size of antiderivative = 23.25 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\text {Too large to display} \]
Piecewise((zoo*x**2/sin(c)**2, Eq(a, 0) & Eq(b, 0) & Eq(d, 0)), ((tan(c/2 + d*x**2/2)/(4*d) - 1/(4*d*tan(c/2 + d*x**2/2)))/b**2, Eq(a, 0)), (-3*tan( c/2 + d*x**2/2)**2/(3*b**2*d*tan(c/2 + d*x**2/2)**3 - 9*b**2*d*tan(c/2 + d *x**2/2)**2 + 9*b**2*d*tan(c/2 + d*x**2/2) - 3*b**2*d) + 3*tan(c/2 + d*x** 2/2)/(3*b**2*d*tan(c/2 + d*x**2/2)**3 - 9*b**2*d*tan(c/2 + d*x**2/2)**2 + 9*b**2*d*tan(c/2 + d*x**2/2) - 3*b**2*d) - 2/(3*b**2*d*tan(c/2 + d*x**2/2) **3 - 9*b**2*d*tan(c/2 + d*x**2/2)**2 + 9*b**2*d*tan(c/2 + d*x**2/2) - 3*b **2*d), Eq(a, -b)), (-3*tan(c/2 + d*x**2/2)**2/(3*b**2*d*tan(c/2 + d*x**2/ 2)**3 + 9*b**2*d*tan(c/2 + d*x**2/2)**2 + 9*b**2*d*tan(c/2 + d*x**2/2) + 3 *b**2*d) - 3*tan(c/2 + d*x**2/2)/(3*b**2*d*tan(c/2 + d*x**2/2)**3 + 9*b**2 *d*tan(c/2 + d*x**2/2)**2 + 9*b**2*d*tan(c/2 + d*x**2/2) + 3*b**2*d) - 2/( 3*b**2*d*tan(c/2 + d*x**2/2)**3 + 9*b**2*d*tan(c/2 + d*x**2/2)**2 + 9*b**2 *d*tan(c/2 + d*x**2/2) + 3*b**2*d), Eq(a, b)), (x**2/(2*(a + b*sin(c))**2) , Eq(d, 0)), (a**3*log(tan(c/2 + d*x**2/2) + b/a - sqrt(-a**2 + b**2)/a)*t an(c/2 + d*x**2/2)**2/(2*a**4*d*sqrt(-a**2 + b**2)*tan(c/2 + d*x**2/2)**2 + 2*a**4*d*sqrt(-a**2 + b**2) + 4*a**3*b*d*sqrt(-a**2 + b**2)*tan(c/2 + d* x**2/2) - 2*a**2*b**2*d*sqrt(-a**2 + b**2)*tan(c/2 + d*x**2/2)**2 - 2*a**2 *b**2*d*sqrt(-a**2 + b**2) - 4*a*b**3*d*sqrt(-a**2 + b**2)*tan(c/2 + d*x** 2/2)) + a**3*log(tan(c/2 + d*x**2/2) + b/a - sqrt(-a**2 + b**2)/a)/(2*a**4 *d*sqrt(-a**2 + b**2)*tan(c/2 + d*x**2/2)**2 + 2*a**4*d*sqrt(-a**2 + b*...
Timed out. \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\text {Timed out} \]
Time = 0.28 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.58 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\frac {{\left (\pi \left \lfloor \frac {d x^{2} + c}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (a\right ) + \arctan \left (\frac {a \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + b}{\sqrt {a^{2} - b^{2}}}\right )\right )} a}{{\left (a^{2} d - b^{2} d\right )} \sqrt {a^{2} - b^{2}}} + \frac {b^{2} \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + a b}{{\left (a^{3} d - a b^{2} d\right )} {\left (a \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + a\right )}} \]
(pi*floor(1/2*(d*x^2 + c)/pi + 1/2)*sgn(a) + arctan((a*tan(1/2*d*x^2 + 1/2 *c) + b)/sqrt(a^2 - b^2)))*a/((a^2*d - b^2*d)*sqrt(a^2 - b^2)) + (b^2*tan( 1/2*d*x^2 + 1/2*c) + a*b)/((a^3*d - a*b^2*d)*(a*tan(1/2*d*x^2 + 1/2*c)^2 + 2*b*tan(1/2*d*x^2 + 1/2*c) + a))
Time = 6.55 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.96 \[ \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx=\frac {\frac {b}{a^2-b^2}+\frac {b^2\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}{a\,\left (a^2-b^2\right )}}{d\,\left (a\,{\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}^2+2\,b\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )+a\right )}+\frac {a\,\mathrm {atan}\left (\frac {\left (a^2-b^2\right )\,\left (\frac {a^2\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}{{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}+\frac {a\,\left (2\,a^2\,b-2\,b^3\right )}{2\,{\left (a+b\right )}^{3/2}\,\left (a^2-b^2\right )\,{\left (a-b\right )}^{3/2}}\right )}{a}\right )}{d\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}} \]
(b/(a^2 - b^2) + (b^2*tan(c/2 + (d*x^2)/2))/(a*(a^2 - b^2)))/(d*(a + a*tan (c/2 + (d*x^2)/2)^2 + 2*b*tan(c/2 + (d*x^2)/2))) + (a*atan(((a^2 - b^2)*(( a^2*tan(c/2 + (d*x^2)/2))/((a + b)^(3/2)*(a - b)^(3/2)) + (a*(2*a^2*b - 2* b^3))/(2*(a + b)^(3/2)*(a^2 - b^2)*(a - b)^(3/2))))/a))/(d*(a + b)^(3/2)*( a - b)^(3/2))